package com.gome.ocean.dao.datax;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.datasource.SQLUploadBean;

/**
 * @author zhangguoqing 2016年10月26日 下午5:23:12
 * @since 5.0.0
 */
@Repository("iSQLUploadDAO")
public interface ISQLUploadDAO {

    public void insert(SQLUploadBean bean);

    public void update(SQLUploadBean bean);

    public void delete(@Param("id") Long id);

    public SQLUploadBean getBeanByMap(Map<String, Object> map);

    public List<SQLUploadBean> getListsBeanByMap(Map<String, Object> map, RowBounds rowBounds);

    public List<SQLUploadBean> getListsBeanByProjects(@Param("projects") List<String> projects,
                                                      @Param("commitUserEmail") String commitUserEmail,
                                                      @Param("startTime") String startTime,
                                                      @Param("endTime") String endTime, RowBounds rowBounds);

    public List<SQLUploadBean> getAllListsBean(RowBounds bounds);
}
